import request from '@/config/axios'

// 审核 VO
export interface AuditVO {
  id: number | undefined // 唯一编号
  auditStatus: number | undefined // 审核状态
  auditNote: number | undefined // 审核说明
}

// 审核 API
export const AuditApi = {
  // 查询审核
  getAudit: async (module: string, identity: string, id: number) => {
    return await request.get({
      url: `/${module}/${identity}/get-audit?id=${id}`
    })
  },

  // 更新审核
  doAudit: async (module: string, identity: string, data: any) => {
    return await request.post({
      url: `/${module}/${identity}/do-audit`,
      data: data
    })
  }
}
